package com.aop.dynamicproxy;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @Author: tgy
 * @Date: 2020-08-05 09:51
 */
public class MyMethodBeforeAdvice implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {


        System.out.println(method.getName() + "before run");
    }
}
